import BaseFindApi from '@/api/baseFindApi';
import {PARAMS} from '@/api/http';
import OperationLog from '@/structure/operationLog';

/**
 * 操作记录
 */
class OperationLogApi extends BaseFindApi<OperationLog> {
  public getBase(): string {
    return 'user/user/operationLog';
  }

  /**
   * 导出excel
   * @param params 参数
   * @return 响应
   */
  public exportExcel(params: PARAMS): Promise<Blob> {
    return super.get0(`${this.getBase()}/exportExcel`, {
      responseType: 'blob',
      params
    });
  }
}

export default new OperationLogApi();
